package com.digitalchina.lxnsy.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import com.digitalchina.lxnsy.R;
import com.digitalchina.lxnsy.entity.StorageModeVO;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：
 * 包名：com.digitalchina.bigdata.viewholder
 * 创建人：白彦东
 * 创建时间：2016/12/28 18:10
 * 修改备注：
 * ================================================
 */

public class StorageHolder extends BaseViewHolder<StorageModeVO> {

    private TextView tvContent;


    public StorageHolder(ViewGroup parent) {
        super(parent, R.layout.item_popupwindow);
        tvContent = $(R.id.item_popup_window_tv_content);
    }

    @Override
    public void setData(StorageModeVO data) {
        super.setData(data);
        tvContent.setText(null == data.getStorageModeName() ? "" : data.getStorageModeName());
    }

}
